package com.example.check_oa.dubbo;

import com.example.check_oa.model.service.ReplacementCardApService;
import com.example.comment_oa.dubbo.RcDubbo;
import com.example.comment_oa.pojos.attendance.ReplacementCardAp;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class RcDubboImpl implements RcDubbo {
    @Resource
    ReplacementCardApService replacementCardApService;

    @Override
    public int apRc(ReplacementCardAp replacementCardAp, MultipartFile file) {
        return replacementCardApService.add(replacementCardAp,file);
    }

    @Override
    public int yesRc(String time,String userRc,String rcId, String yesUser) {
        return replacementCardApService.yesRc(time,yesUser,rcId,yesUser);
    }

    @Override
    public int noRc(String rcId, String yesUser) {
        return replacementCardApService.noRc(rcId,yesUser);
    }
}
